#define _CRT_SECURE_NO_WARNINGS 1
#include"string.h"

namespace wh
{
	void string_test01()
	{
		string s("abc");
		string s2 = "abcdefr";
		string s3;
		s3 = s2 = s;
		cout << s.c_str() << endl;
		cout << s2.c_str() << endl;
		cout << s3.c_str() << endl;
		cout << s2.size() << endl;
		cout << s2.capacity() << endl;
	}
	void string_test02()
	{
		string s1("abcdefg");
		//s1.push_back('a');
		//s1.insert(0, "wwwww");
		//s1 += 'g';
		//s1.reverse(100);
		//cin >> s1;
		//size_t ret = s1.find('a');
		//s1.erase(2);
		//cout << s1.find("dez") << endl;

		string s2;
		s2 = s1;
		cout << s2 << endl;
	}
}




int main()
{
	wh::string_test02();
	return 0;
}